package com.sneaker.shower.entity.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
public class SysUserDTO {

    private String guid;

    @NotBlank(groups = {SysUserDTO.Add.class, Login.class}, message = "请输入邀请码")
    private String invitationCode;

    private Long organizationGuid;

    private Integer role;
    @NotBlank(groups = {SysUserDTO.Add.class, Login.class}, message = "请输入用户名密码")
    private String password;
    @NotBlank(groups = {SysUserDTO.Add.class, Login.class}, message = "请输入用户名密码")
    private String userName;
    private String avatarUrl;
    private String openId;

    public static interface Add {

    }

    public static interface Login {

    }
}
